#include <stdio.h>

int fun(int a,int b)
{

	return (a>b ? a : b);
}

int main(int argc,char *argv[])
{
	int x=3,y=8,z=6,r;
	r = fun(2 * z,fun(x,y));
	printf("r = %d\n",r);
	
	return 0;
}